<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="pragma" content="no-cache">  <!-- HTTP 1.1 -->
    <meta http-equiv="cache-control" content="no-cache,must-revalidate">  <!-- HTTP 1.0 -->
    <meta name="renderer" content="webkit|ie-comp|ie-stand"/> <!--优先级：极速模式，兼容模式，IE模式-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title>扬州房产测绘业务管理系统</title>
    <link rel="stylesheet" type="text/css" href="../../../libs/jeasyui-181/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../../libs/jeasyui-181/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../../../css/common.css">
    <style>
        .wall {
            margin-left: 200px;
            display: inline-block;
        }
    </style>
    <script type="text/javascript" src="../../../libs/jeasyui-181/jquery.min.js"></script>
    <script type="text/javascript" src="../../../libs/jeasyui-181/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../libs/thUtil.js"></script>
</head>
<body>
</body>
<script>
    $(function () {
        //ajax.getBaseInfo();
    });
    var ajax = {
        getBaseInfo: function () {
            var projectNo = ajax.getHrefKey("businessKey");
            Network.connect(window.api.caseDetail, "POST", {projectNo: projectNo}, function (res) {
                if (res.code === ResponseCode.OK) {
                    console.log(res.data);

                    var inputId = "";
                    var inputArray = $("input[type='text']");//取到所有的input text 并且放到一个数组中
                    inputArray.each(//使用数组的循环函数 循环这个input数组
                        function () {
                            var input = $(this);//循环中的每一个input元素
                            inputId += input.attr("id") + ":" + $('#' + input.attr("id")).val() + ",";//查看循环中的每一个input的id
                        }
                    );
                    console.log(inputId);
                }
            })
        },
        /**
         * @return {null}
         */
        getHrefKey: function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r !== null) {
                return (r[2]);
            } else {
                return null;
            }
        }
    }
</script>
</html>